- [Detect key codes for keys](#org9a4b76a)
- [Remap keys](#orgf4e0533)



<a id="org9a4b76a"></a>

# Detect key codes for keys

```shell
xev -event keyboard
```


<a id="orgf4e0533"></a>

# Remap keys

```shell
# remap caps lock to control
setxkbmap -layout de -option ctrl:nocaps
setxkbmap -layout de -option ctrl:swapcaps
```